package com.example.score.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(of = {"examDetailId", "studentId", "classId"})
@TableName("t_score_detail_statistics")
public class ScoreDetailStatistics {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long examDetailId;
    private Long classId;
    private String className;
    private String studentId;
    private String studentName;
    private String subjectName;
    private Date examDate;
    private Double totalScore;
    private Double objectiveScore;
    private Double subjectiveScore;
    private Date createdTime;
    private Date updatedTime;

    @TableField(exist = false)  // 标记这个字段不是数据库列
    private List<ScoreDetailQuestionStatistics> questionScores;
} 